:root {
    /* iOS颜色变量 */
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-red: #FF3B30;
    --ios-gray: #8E8E93;
    --ios-light-gray: #E5E5EA;
    --ios-ultra-light-gray: #F2F2F7;
    --ios-white: #FFFFFF;
    --ios-black: #000000;
    
    /* 阴影变量 */
    --ios-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --ios-shadow-strong: 0 4px 20px rgba(0, 0, 0, 0.1);

    /* 字体变量 */
    --ios-font: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ios-font);
    background-color: var(--ios-ultra-light-gray);
    color: var(--ios-black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ios-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 状态栏样式 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.status-bar-icons i {
    margin-left: 10px;
}

/* 应用标题区域 */
.app-header {
    text-align: center;
    padding: 20px 0;
}

.app-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(45deg, var(--ios-blue), #5AC8FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 16px;
    color: var(--ios-gray);
    font-weight: 400;
}

/* 卡片样式 */
.card {
    background-color: var(--ios-white);
    border-radius: 13px;
    box-shadow: var(--ios-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--ios-shadow-strong);
    transform: translateY(-2px);
}

.card-content {
    padding: 20px;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed var(--ios-light-gray);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.upload-area:hover {
    border-color: var(--ios-blue);
    background-color: rgba(0, 122, 255, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: var(--ios-blue);
    margin-bottom: 15px;
}

.upload-text p {
    margin: 5px 0;
}

.upload-text .small {
    font-size: 14px;
    color: var(--ios-gray);
}

.hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 文件信息区域 */
.file-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--ios-ultra-light-gray);
    padding: 15px;
    border-radius: 10px;
}

.file-icon {
    font-size: 24px;
    color: var(--ios-blue);
}

.pdf-icon {
    color: var(--ios-red);
}

.file-name {
    font-size: 16px;
    font-weight: 500;
    word-break: break-word;
}

/* iOS风格按钮 */
.ios-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    text-decoration: none;
}

.ios-button.primary {
    background-color: var(--ios-blue);
    color: white;
}

.ios-button.primary:hover {
    background-color: #0071EB;
}

.ios-button.primary:active {
    background-color: #0062CC;
    transform: scale(0.98);
}

.ios-button.secondary {
    background-color: var(--ios-ultra-light-gray);
    color: var(--ios-blue);
}

.ios-button.secondary:hover {
    background-color: var(--ios-light-gray);
}

.ios-button.secondary:active {
    background-color: #D8D8DD;
    transform: scale(0.98);
}

/* 结果卡片 */
.result-header {
    margin-bottom: 15px;
    text-align: center;
}

.success-icon {
    color: var(--ios-green);
    margin-right: 5px;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 加载覆盖层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(242, 242, 247, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 122, 255, 0.2);
    border-top-color: var(--ios-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 错误提示 */
.error-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(50, 50, 50, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-toast i {
    color: var(--ios-red);
}

/* 特性部分 */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background-color: var(--ios-white);
    border-radius: 13px;
    box-shadow: var(--ios-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--ios-blue), #5AC8FA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h3 {
    margin-bottom: 4px;
    font-size: 16px;
}

.feature-text p {
    font-size: 14px;
    color: var(--ios-gray);
}

/* 页脚 */
.app-footer {
    text-align: center;
    padding: 20px 0;
    color: var(--ios-gray);
    font-size: 14px;
}

/* 辅助类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .app-header h1 {
        font-size: 28px;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
} 